﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.pp.processor.type.comm;
using SharpSqlAnalyzer.pp.utils;
using SharpSqlAnalyzer.stmt;

namespace SharpSqlAnalyzer.pp.processor.type.insert
{
	// Token: 0x0200023F RID: 575
	public class InsertOutputClauseProcessor : AbstractProcessor
	{
		// Token: 0x060012F4 RID: 4852 RVA: 0x0031BC94 File Offset: 0x00319E94
		public override void process(TParseTreeNode nodeArg)
		{
			TInsertSqlStatement tinsertSqlStatement = nodeArg as TInsertSqlStatement;
			if (tinsertSqlStatement.OutputClause == null)
			{
				return;
			}
			int length = SourceTokenOperator.curColumnNumberVT(tinsertSqlStatement.InsertToken);
			TSourceToken startToken = tinsertSqlStatement.OutputClause.startToken;
			SourceTokenOperator.addBefore(this.Option, startToken, SourceTokenOperator.createReturnSourceToken());
			SourceTokenOperator.addBefore(this.Option, startToken, SourceTokenOperator.createWhitespaceSourceToken(length));
		}
	}
}
